package org.monkey.common.constant.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ErrorResultEnum implements ErrorCode {

  private int code;
  private String msg;

  public static final ErrorResultEnum SYSTEM_ERROR = new ErrorResultEnum(500, "系统错误,请联系管理员");
  public static final ErrorResultEnum TEST_ERROR = new ErrorResultEnum(501, "测试业务制造的异常");
  public static final ErrorResultEnum DATA_NOT_FOUNT = new ErrorResultEnum(502, "数据没有找到");
  public static final ErrorResultEnum PARAM_VALID = new ErrorResultEnum(503, "参数非法");
  public static final ErrorResultEnum SERVICE_BUSY = new ErrorResultEnum(504, "系统繁忙,请稍后再试");
  public static final ErrorResultEnum URL_INVALID = new ErrorResultEnum(505, "非法的URL");
}
